import request from '@/utils/request'

/* 列表分页*/
export function selectShiftPage(data) {
  return request({
    url: '/erp/shift/selectShiftPage',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveShift(data) {
  return request({
    url: '/erp/shift/saveShift',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateShiftById(data) {
  return request({
    url: '/erp/shift/updateShiftById',
    method: 'post',
    data: data
  })
}

export function selectShiftById(data) {
  return request({
    url: '/erp/shift/selectShiftById/' + data,
    method: 'post'
  })
}

export function selectAllShift(data) {
  return request({
    url: '/erp/shift/selectAllShift',
    method: 'post',
    data: data
  })
}

/* 删除*/
export function deleteShift(data) {
  return request({
    url: '/erp/shift/deleteShift',
    method: 'post',
    data: data
  })
}
